package TEST4_21;

public class T4 {
    public static int getnum(String str){
        String s="";
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i)>=48 && str.charAt(i)<=57){
                s = s + str.charAt(i);
            }
        }
        int a = Integer.parseInt(s);
        return a;
    }
}

class test4{
    public static void main(String[] args) {
        String[] s = {"adf1f23","ju34ui21"};
        int sum = 0;
        for (int i = 0; i < s.length; i++) {
            sum = sum + T4.getnum(s[i]);
        }
        System.out.println(sum);
    }
}
